package cn.clq.org.domain;

import cn.clq.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @author clqlongbao
 * @version 1.0
 * @description: Department的实体类
 * @date 2022/6/1 11:51
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department extends BaseDomain {

    private String sn;
    private String name;
    //子部门
    @JsonInclude(JsonInclude.Include.NON_EMPTY)  //集合不为空才返回
    private List<Department> children = new ArrayList<>();
    private String dirPath;
    private Integer state;
    private Long manager_id;
    private Long parent_id;
    private Long shop_id;
    //部门管理员
    private Employee manager;
    //上级部门
    private Department parent;
}
